// 封装我的钱包页相关接口
import request from '@/utils/request.js'

// 获取用户账户余额
export const getUserAccountBalanceService = (user_id) => {
	return request({
		url: `/user/${user_id}/money`,
		method: 'GET'
	})
}

// 用户账户充值
export const rechargeUserAccountService = (data) => {
	const {
		user_id,
		amount
	} = data
	return request({
		url: `/user/${user_id}/money/recharge`,
		method: 'PATCH',
		data: {
			amount
		}
	})
}